<%@ page pageEncoding="UTF-8" %>
<%@ taglib prefix="security" uri="/security" %>


<div id="topbar">

    <div class="container">


        <div id="top-nav">


            <ul class="pull-right">

                <li><span class="badge badge-primary">  <security:principal/></span></li>
                <security:hasRole name="admin">
                <li class="dropdown">
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="icon-user"></i> <f:message key="user"/>
                        <b class="caret"></b>
                    </a>

                    <ul class="dropdown-menu pull-right">
                        <li><a href="${BASE}/users"> <f:message key="user.user_list"/> </a></li>
                        <li><a href="${BASE}/user"><f:message key="user.create_user"/></a></li>

                    </ul>
                </li>
                </security:hasRole>
                <li><a href="#" id="logout"><f:message key="common.logout"/></a></li>
            </ul>

        </div> <!-- /#top-nav -->

    </div> <!-- /.container -->

</div> <!-- /#topbar -->